package com.yhsoft.buyer.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author: yyyyyyyh
 * @create: 2023-10-16
 * @Version 1.0
 **/
@Data
public class CartInVo {

    @NotNull(message = "商品ID不能为空")
    @ApiModelProperty(value = "商品ID")
    private Integer goodsId;

    @NotNull(message = "skuId不能为空")
    @ApiModelProperty(value = "skuId")
    private Integer skuId;

    @NotNull(message = "sku名称不能为空")
    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @NotNull(message = "sku信息不能为空")
    @ApiModelProperty(value = "sku信息")
    private String skuInfo;

    @NotNull(message = "sku商品数量不能为空")
    @ApiModelProperty(value = "sku商品数量")
    private Integer skuQuantity;

    @NotNull(message = "sku价格不能为空")
    @ApiModelProperty(value = "添加购物车时商品sku价格")
    private BigDecimal skuPrice;

}
